<template>
  <view class="relative sticky top-0 z-1111">
    <u-image src="@/static//images/head.png" :width="750" :height="180" class="absolute left-0 top-0" />
    <view class=" flex relative z-11 flex flex-col">
      <view class="pt-13 text-white text-lg tracking-wider flex justify-center relative">
        <view class=" absolute left-32rpx" @click="goBack" ><u-icon name="arrow-left" /></view>
        <view class="col-span-1 text-center ">{{ props.title }}</view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">

const props = defineProps<{
  title: string
}>()

async function goBack() {
  let page=getCurrentPages()
  uni.navigateBack({
        delta: 1,
        success: (e) => {
          page[page.length - 2].onLoad()
        }
      })
}

</script>

<style scoped>

</style>
